package net.whzjkj.gateway.tcpserver.processor.command;

import lombok.extern.slf4j.Slf4j;
import net.whzjkj.gateway.model.vo.PackageData;
import net.whzjkj.gateway.tcpserver.constant.JT808Constant;
import net.whzjkj.gateway.tcpserver.processor.AbstractMessageProcessor;
import org.springframework.stereotype.Component;

/**
 * @description: 通用平台应答
 * @author: Mr.Hu
 * @create: 2018-11-01 08:47
 **/
@Component
@Slf4j
public class CMD8001 extends AbstractMessageProcessor {

    @Override
    public void processTerminalMessage(PackageData data) throws InterruptedException {
        log.info("sssssssssss");
        super.sendMessage(data.getChannel(), new byte[]{12,23,23});
    }

    @Override
    public boolean support(PackageData data) {
        return data.getMessageHeader().getMessageId()== JT808Constant.CMD_COMMON_SERVER_RESPOND;
    }


}
